package cn.glow.readingcloud.account.service;

import cn.glow.readingcloud.account.pojo.UserBookshelf;
import cn.glow.readingcloud.account.pojo.UserBookshelfFront;
import cn.glow.readingcloud.common.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Author Glow
 * @Date 2023-04-16 15:32:11
 * @Description
 * @Version 1.0
 */
public interface UserBookshelfService extends IService<UserBookshelf> {
    /**
     * 同步书架
     * @param userId
     * @param userBookshelfFront
     * @return
     */
    Result syncUserBookshelf(Integer userId, UserBookshelfFront userBookshelfFront);

    /**
     * 获取用户书架数据
     * @param userId
     * @return
     */
    Result getUserBookshelf(Integer userId);

    /**
     * 用户书架是否存在该图书
     * @param userId
     * @param bookId
     * @return
     */
    Result userBookshelfExistBook(Integer userId, String bookId);
}
